package com.star.security.authentication;

import com.star.security.exception.AuthenticationException;

/**
 * 身份验证管理器
 *
 * @author yangzj
 */
public interface AuthenticationManager {

	/**
	 * 进行验证
	 *
	 * @param authentication 身份验证
	 * @return {@link Authentication}
	 * @throws AuthenticationException 身份验证异常
	 */
	Authentication authenticate(Authentication authentication) throws AuthenticationException;

}
